<+b_dialog dialog_title="Custom Video Preset" dw=800 dialog_nogroup=1 dialog_space=1>

<+b_box width=#bw label="Custom Video Preset">

	<table cellspacing=#ds>
	<tr>
		<td align=right width=#optLabelWidth><img height=3><br>Group</td>
		<td><input type=text name=manufacturer width=400></td>
	</tr>
	<tr>
		<td align=right><img height=3><br>Title</td>
		<td><input type=text name=model width=400></td>
	</tr>
	</table>
<+e_box>

<img src=images/button_add.png save=add>
<img src=images/button_delete.png save=delete>
<img width=28 height=20 bgcolor=#colorFrame save=text>
<img src=#text i_rectleft=0 i_rectright=27 i_recttop=1 i_rectbottom=19 i_rectcolor=#colorFrame save=text>
<img src=#text i_text="hz" i_textleft=2 i_textcol=#colorFrameText i_textshadowopacity=0 i_textsize=12 save=textHZ>
<img src=#text i_text="fps" i_textleft=2 i_textcol=#colorFrameText i_textshadowopacity=0 i_textsize=12 save=textFPS>
<img src=#text i_text="kbps" i_textleft=2 i_textcol=#colorFrameText i_textshadowopacity=0 i_textsize=12 save=textKBPS>

<table>
<tr>
	<td width=250>

		<+b_box width=254 label="Preset Profiles" box_space=0>
			<input type=listbox singleSel=1 name=profile width=250 height=418><br>
			<img width=250 height=1 bgcolor=#colorFrame><br>
			<table cellpadding=#ds>
			<tr>
				<td width=254 bgcolor=#colorToolbar>
					<center>
					<input type=button name=addProfile toolbar=1 width=60 height=20 xpar=images/button_add_wide.png  grayxpar=images/button_add_wide.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorToolbarIconGrey bgcolor=#colorToolbar nofade=1 alt="Add" ascent=20>
					<input type=button name=deleteProfile toolbar=1 width=60 height=20 xpar=images/button_remove.png  grayxpar=images/button_remove.png img=#fake grayImg=#fake fgcolor=#colorIcon fgcolorover=#colorSelection graycolor=#colorToolbarIconGrey bgcolor=#colorToolbar nofade=1 alt="Delete" ascent=20>
					</center>
				</td>
			</tr>
			</table>
		<+e_box>	
	</td>
	<td width=#ds></td>
	<td>
		<assign bw1=518>
		<+b_box label="Profile Settings" width=#bw1>
			<table cellspacing=#ds>
			<tr>
				<td align=right width=#optLabelWidth><img height=3><br>Profile Name</td>
				<td><input type=text name=name width=240></td>
			</tr>
			<tr>
				<td align=right><img height=3><br>Format</td>
				<td><select name=fileFormat width=240 height=22></select></td>
			</tr>
			<tr>				
				<td align=right><img height=3><br>File Extension</td>
				<td><input type=text name=fileExtension width=40></select></td>
			</tr>
			</table>
		<+e_box>
		<img height=#ds>
		<+b_box label="Video Settings" width=#bw1>
			<table cellspacing=#ds>
			<tr>
				<td align=right width=#optLabelWidth><img height=3><br>Compression</td>
				<td><select name=videoFormat width=170 height=22></select></td>
			</tr>
			<tr>
				<td align=right width=#optLabelWidth><img height=3><br>Resolution</td>
				<td>
					<table>
					<tr>
						<td><input type=text name=videoWidth width=40></td>
						<td><img src=#textX></td>
						<td><input type=text name=videoHeight width=40></td>
						<td><img src=#textPX></td>
					</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td align=right><img height=3><br>Aspect Ratio</td>
				<td><input type=text name=videoAspectRatioX width=40 ascent=20><img src=#textX><input type=text name=videoAspectRatioY width=40 ascent=20></td>
			</tr>
			<tr>
				<td align=right><img height=3><br>Framerate</td>
				<td><input type=text name=videoFrameRate width=64 ascent=20><img src=#textFPS></td>
			</tr>
			<tr>
				<td align=right><img height=3><br>Quality</td>
				<td>
					<table>
					<tr>
						<td width=130><img height=2><br><input type=radio bgcolor=#colorGroupBox name=useAverageBitRate:a value="Average Bitrate" alt="Use an average bitrate for the video quality"></td>
						<td><input type=text name=videoBitRate width=71 ascent=20><img src=#textKBPS><br><img height=#ds></td>
					</tr>
					<tr>
						<td><img height=2><br><input type=radio bgcolor=#colorGroupBox name=useConstantRateFactor:a value="Constant Rate Factor" alt="Use a constant rate factor for the video quality"></td>
						<td><input type=slider bgcolor=#colorGroupBox name=crfSlider offset=0 drange=1000 horz=1 width=200 range=1000 page=10 step=1 ascent=20 alt="Set the constant rate factor."><img width=10><input type=text name=crfText width=40 ascent=20></td>
					</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td align=right><img height=4><br>Video Profile:</td>
				<td><select name=videoProfile width=150 height=22></select></td>
			</tr>
			<tr>
				<td align=right>Interlacing</td>
				<td><input type=checkbox name=videoInterlaced bgcolor=#colorGroupBox value="Interlace video output"></td>
			</tr>
			</table>
		<+e_box>
		<img height=#ds>
		<+b_box label="Audio Settings" width=#bw1>
			<table cellspacing=#ds>
			<tr>
				<td align=right width=#optLabelWidth><img height=3><br>Audio Format</td>
				<td><select name=audioFormat width=170 height=22></select></td>
				<td width=120 align=right>Bitrate</td>
				<td><table><tr><td><input type=text name=audioBitRate width=60></td><td><img src=#textKBPS></td></tr></table></td>
			</tr>
			<tr>
				<td align=right width=50><img height=3><br>Channels</td>
				<td><select name=audioChannelCount width=170 height=22></select></td>
				<td align=right>Sampling Rate<img height=#ds><br></td>
				<td><table><tr><td><input type=text name=audioSamplingRate width=60></td><td><img src=#textHZ></td></tr></table></td>
			</tr>
			</table>
		<+e_box>
	</td>
</tr>
</table>

<+d_dialog>
	<input type=button name=ok value=Save default=1 width=#dbw height=#dbh bgcolor=#colorSelection textcolor=#colorSelectionText>
	<img width=#ds>
	<input type=button name=cancel value=Cancel width=#dbw height=#dbh>
<+e_dialog>
